#ifndef __GRB_LIGHTS_H_
#define __GRB_LIGHTS_H_

#include "bsp_spi.h"
#include "app_include.h"


typedef __packed struct{
    uint32_t Blue:8;
    uint32_t Red:8;
	  uint32_t Green:8;
}GRB_CH_Typedef;

typedef union _GRB_{
    uint32_t GRB_value;
    GRB_CH_Typedef CH;
}GRB_TypeDef;

uint8_t GRB_SPI3_SendBuffer(uint8_t *buf,uint8_t length);
void Transfer_RGB2SPI(uint8_t *rgb,uint8_t *spi_buf,uint16_t pixel_cnt);



#endif
